#include "message.h"

Message::Message(Room *room, User *user, QString text) {
    this->room = room;
    this->user = user;
    this->text = text;
    this->date = QDateTime::currentDateTime();
}

Room* Message::getRoom() {
    return this->room;
}

User* Message::getUser() {
    return this->user;
}

QDateTime Message::getDateTime() {
    return this->date;
}

QString Message::getText() {
    return this->text;
}
